Skip to content

Split calico go-build image publish into parallel pipelines #636

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Jan 17, 2025

Conversation

hjiawei
Copy link
Collaborator

@hjiawei hjiawei commented Jan 17, 2025

This change breaks calico/go-build image build and push to DockerHub into parallel runs. The sequential run for all supported architectures will take about an hour to complete. Moving to parallel pipelines reduce total time to 15-20 minutes. It also switches semaphore runners to f1-standard-2 (from f1-standard-4) because we have 4x more -2 runners and the CI time for each pipeline is only ~4 minutes longer.

@hjiawei hjiawei force-pushed the publish-in-parallel branch from 2901b1b to 09d5a25 Compare January 17, 2025 05:22
@hjiawei hjiawei force-pushed the publish-in-parallel branch from 09d5a25 to 18cc4fc Compare January 17, 2025 05:27
@hjiawei hjiawei requested a review from danudey January 17, 2025 07:05
Comment on lines -52 to -55
agent:
machine:
type: f1-standard-4
os_image: ubuntu2204
Copy link
Collaborator Author

@hjiawei hjiawei Jan 17, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Switching back to f1-standard-2 runners only increases the CI time by ~4 minutes (f1-standard-2 completes one pipeline in ~16 minutes vs f1-standard-4 completes in ~12 minutes). We have 4x more f1-standard-2 runners so CI jobs are unlikely to starve.

Copy link
Contributor

@danudey danudey left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm!

@danudey danudey merged commit b94c173 into master Jan 17, 2025
4 checks passed
@hjiawei hjiawei deleted the publish-in-parallel branch January 17, 2025 16:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants